<h2>Sửa thông tin danh mục sản phẩm</h2>
<?php echo $form->create('Category', array('controller' => 'categories', 'action' => 'edit','type'=>'file'));?>


	<div class="span-23 last">
		<div class="span-5">Tên Category</div>
		<div class="span-17 last">
			<?php 
			echo $form->input('name', array('label'=>false,'type'=>'text','size'=>'30', 'error' => false));
			echo $form->error('Category.name') == true ? "<div>{$form->error('Category.name')}</div>" : "<div></div>";
			?>
		</div>
	</div>
	<div class="span-23 last">
		<div class="span-5">Alias</div>
		<div class="span-17 last">
			<?php 
			echo $form->input('alias', array('label'=>false,'type'=>'text','size'=>'30', 'error' => false));
			?>
		</div>
	</div>
	<div class="span-23 last">
		<div class="span-5">Category Cha</div>
		<div class="span-17 last">
			<div>
				<?php echo $form->input('parent_id',array('label'=>false,'options'=>$parentCat, 'empty' =>'category gốc', 'error' => false,'div'=>false));?>
			</div>
		</div>
	</div>
	<div class="span-23 last">
		<div class="span-5">Thứ tự</div>
		<div class="span-17 last">
			<?php 
			echo $form->input('orders',array('label'=>'','error' => false));
			echo $form->error('Category.orders') == true ? "<div>{$form->error('Category.orders')}</div>" : "<div>Thứ tự phải là một số</div>";
			?>
		</div>
	</div>
	<input name="action" value="edit" type="hidden">
	<?php echo$form->input('active', array('id' => 'active-input', 'label' => '', 'type' => 'checkbox', 'div' => false))?> 	
	<input name="save" value="Save" type="submit">
<?php echo $form->end();?>



